
/**
 * AppleIIGo
 * Resources class
 * (C) 2008 by Marc S. Ressl (mressl@umich.edu)
 * Released under the GPL
 */

#ifndef RESOURCES_H
#define RESOURCES_H

#include "types.h"

class Resources {
public:
	Resources(char * resourcesPath);
	~Resources();
	
	UINT32 getResourceByteNum(char * resourceName);
	UINT32 readResource(UINT8 * buffer, UINT32 bufferByteNum,
						char * resourceName);
	UINT32 readWaveResource(SINT16 * buffer, UINT32 sampleNum,
							char * resourceName);
	
private:
	char * resourcesPath;
	
	char * getResourcePath(char * resourceName);
};

#endif
